package com.alan.designMode.mediator.example_1;

/**
 * Created by Alan on 17-9-4
 */
public class Purchase extends AbstractColleague{

    public Purchase(AbstractMediator mediator) {
        super(mediator);
    }

    //采购IBM电脑
    public void buyIBMcomputer(Integer number) {
        super.mediator.execute("purchase.buy",number);
    }

    //不再采购IBM电脑
    public void refuseBuyIBM() {
        System.out.println("不再采购IBM电脑");
    }

}
